package www.openteam.com.bean;

import java.io.Serializable;

import www.openteam.com.R;
import www.openteam.com.ui.qualityCntrl.FQCFragment;
import www.openteam.com.ui.qualityCntrl.IPQCFragment;
import www.openteam.com.ui.qualityCntrl.IQCFragment;

/**
 * Created by OT on 2017-12-15.
 */

public enum QualityCtrl implements Serializable {

    IQC(0, R.string.IQCName,R.drawable.tab_icon_iqc,IQCFragment.class,
            R.array.inventoryquery,"ST0009"),
    IPQC(1, R.string.IPQCName,R.drawable.tab_icon_ipqc,IPQCFragment.class,
            R.array.inventoryquery,"ST0009"),
    FQC(2, R.string.FQCName,R.drawable.tab_icon_fqc,FQCFragment.class,
         R.array.inventoryquery,"ST0009")
    ;
//    TEST(3, R.string.TEST,R.drawable.tab_icon_fqc,FQCFragment.class,
//            R.array.inventoryquery,"ST0009")
//    ;
    private int id;   //编号
    private int resName; //名称
    private int resIcon; //图标
    private Class<?> clz; //详细
    private int resDetail; //描述
    private String appAuthority; //权限



    QualityCtrl(int id, int resName, int resIcon, Class<?> clz, int resDetail, String appAuthority) {
        this.id = id;
        this.resName = resName;
        this.resIcon = resIcon;
        this.clz = clz;
        this.resDetail = resDetail;
        this.appAuthority = appAuthority;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getResName() {
        return resName;
    }

    public void setResName(int resName) {
        this.resName = resName;
    }

    public int getResIcon() {
        return resIcon;
    }

    public void setResIcon(int resIcon) {
        this.resIcon = resIcon;
    }

    public Class<?> getClz() {
        return clz;
    }

    public void setClz(Class<?> clz) {
        this.clz = clz;
    }

    public int getResDetail() {
        return resDetail;
    }

    public void setResDetail(int resDetail) {
        this.resDetail = resDetail;
    }

    public String getAppAuthority() {
        return appAuthority;
    }

    public void setAppAuthority(String appAuthority) {
        this.appAuthority = appAuthority;
    }
}
